#include <iostream>

using namespace std;

int RecStrLength( char str[] );

int main( void )
{
	char str[] = "Janne";
	char str2[] = "RecStrLength";

	cout << "The string: "<< str << " Contains " << RecStrLength( str ) << " Characters" << endl;
	cout << "The string: "<< str2 << " Contains " << RecStrLength( str2 ) << " Characters" << endl;

	cin.get();
	return 0;
}


int RecStrLength( char str[] )
{
	if( str[0]=='\0' )
		return 0;
	else
	{
		//char str2[20];
		//strcpy(str2, &str[1]);
		return 1 + RecStrLength( str + 1 );
	}
}
